package com.sgm.designpattern.test;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class NewParent  {

    private String str = "父类有参构造函数";

    static {
        System.out.println("父类静态代码块");
    }



    public static void  aa(){
        System.out.println("父类静态方法");
    }


    public NewParent(){
        System.out.println("父类无参构造函数");
    }

    public NewParent(String strs){
        System.out.println(strs);

    }
    {
        System.out.println("父类代码块");
    }
}
